package com.zeng.jiudian.mapper;

import com.zeng.jiudian.bean.HotelModel;
import com.zeng.jiudian.bean.HotelModelExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HotelMapper
{
    long countByExample(HotelModelExample example);

    int deleteByExample(HotelModelExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(HotelModel record);

    int insertSelective(HotelModel record);

    //创1
    public List<HotelModel> selectAll();

    List<HotelModel> selectByExample(HotelModelExample example);

    HotelModel selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") HotelModel record, @Param("example") HotelModelExample example);

    int updateByExample(@Param("record") HotelModel record, @Param("example") HotelModelExample example);

    int updateByPrimaryKeySelective(HotelModel record);

    int updateByPrimaryKey(HotelModel record);
}